Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Data Language Interface</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Data_Language_Interface"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Data_Language_Interface rootpage-Data_Language_Interface skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Data Language Interface</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><p><b>Data Language One</b> (Data Language/I, DL/I, Data Language/One, Data Language/One<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>) is the language system used to access <a href="IBM" title="IBM">IBM</a>'s <a href="IBM_Information_Management_System" title="IBM Information Management System">IMS</a> <a href="Database" title="Database">databases</a> and its <a href="Data_communication" title="Data communication">data communication</a> system.
</p><p>It is implemented from many languages by making calls to a software stub, DFSLI000. This stub has entry points to handle a variety of programming languages, e.g., calling CBLTDLI from a <a href="COBOL" title="COBOL">COBOL</a> program. This stub is linked to the calling program, passes on the request to the IMS system, and returns the results and a status code.
</p><p>In any full-function IMS database, the smallest element that can be retrieved is a <i>segment</i>. Each segment is made up of <i>fields</i>, one of which, typically, will be a key field. The segments are arranged hierarchically in the database, the highest-level segment type being a root segment. 255 different segment types, on up to 15 levels, are allowed in any database. A database <i>record</i> consists of a specific root segment and all its dependent child segments&nbsp;– there is no limit to the number of segments in a record, or to the number of records in a database (apart from the physical limitations of storage space).
</p><p>The structure of any database is presented to the application program as a <i>PCB</i> (Program Communication Block), and this is used as one of the <a href="Parameter_(computer_programming)" title="Parameter (computer programming)">parameters</a> passed to the stub. Other types of PCB are used to send and receive <a href="Transaction_processing" title="Transaction processing">transaction processing</a> messages, access and write to the user’s <a href="Computer_monitor" title="Computer monitor">VDU</a> screen, and to print reports, etc.
</p><p>When accessing a database segment, the application program also uses an <i>SSA</i> (Segment Search Argument) as a parameter, to specify the segment or segments that it needs. This would typically contain the segment type required and the contents of any key fields.
</p><p>For all languages except <a href="PL/I" title="PL/I">PL/I</a>, the first parameter in a call is the <i>Function Code</i>&nbsp;– a four-character field, examples being: “<code>GU&nbsp;&nbsp;</code>” (Get Unique), “<code>GN&nbsp;&nbsp;</code>” (Get Next), “<code>REPL</code>” (Replace), and “<code>ISRT</code>” (Insert). With PL/I, due to the way this language does not mark the last parameter with a '1' in bit 0, the first parameter must instead be a fullword (Fixed Bin(31)) containing the number of following parameters.
</p><p>A typical call from a <a href="COBOL" title="COBOL">COBOL</a> program might be <code class="mw-highlight mw-highlight-lang-cobolfree mw-content-ltr" dir="ltr"><span class="kr">CALL </span><span class="err">“</span><span class="nv">CBLTDLI</span><span class="err">”</span><span class="w"> </span><span class="kp">USING</span><span class="w"> </span><span class="nv">GU</span><span class="p">,</span><span class="w"> </span><span class="nv">Stores-Database-PCB</span><span class="p">,</span><span class="w"> </span><span class="nv">Stores-Segment-Area</span><span class="p">,</span><span class="w"> </span><span class="nv">Stores-Root-SSA</span></code>. The program would then automatically wait till the requested data were retrieved and placed in the Segment-Area. The status code contained within the PCB would be updated with either blanks (if all went well) or some informational or error code.
</p><p>A typical call from a PL/I program might be <code class="mw-highlight mw-highlight-lang-cobolfree mw-content-ltr" dir="ltr"><span class="kr">CALL</span><span class="w"> </span><span class="nv">PLITDLI</span><span class="p">(</span><span class="nv">FOUR</span><span class="p">,</span><span class="w"> </span><span class="nv">GU</span><span class="p">,</span><span class="w"> </span><span class="nv">Stores-Database-PCB</span><span class="p">,</span><span class="w"> </span><span class="nv">Stores-Segment-Area</span><span class="p">,</span><span class="w"> </span><span class="nv">Stores-Root-SSA</span><span class="p">);</span></code>.
</p>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20060321113510/http://www-03.ibm.com/servers/eserver/zseries/zvse/products/database.html#dli">"IBM z/VSE Products and components"</a>. <a href="IBM" title="IBM">IBM</a>. Archived from <a rel="nofollow" class="external text" href="http://www-03.ibm.com/servers/eserver/zseries/zvse/products/database.html#dli">the original</a> on March 21, 2006<span class="reference-accessdate">. Retrieved <span class="nowrap">2009-06-27</span></span>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp">Information Management Software for z/OS Solutions Information Center</a></li>
<li><a rel="nofollow" class="external text" href="http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.egl.doc/topics/ceglasm0401.html">Basic DL/I database concepts</a></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-03-09" href="https://en.wikipedia.org/wiki/?title=Data_Language_Interface&amp;oldid=1279684053">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>